<!-- detail -->
<template>
  <div class='detail-page'>
    <v-header :title="'详情'"></v-header>
    <van-button plain hairline type="info" @click='changeName'>改变内容</van-button>
  </div>
</template>

<script>
import eventBus from '../libs/event_bus';
import vHeader from "@/components/Header.vue";
export default {
  data () {
    return {
    };
  },

  components: {
    vHeader
  },

  computed: {},
  mounted() {
    console.log(6666);
  },


  methods: {
    changeName() {
      eventBus.$emit('change');
      // this.$store.commit('getContent', '已改变');
      // this.content = this.$store.state.content;
      this.$store.dispatch('main/change', 'hello');
    }
  }
}

</script>
<style lang='scss' scoped>
.detail-page{

}
</style>
